home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / protect_the_fire.swf / scripts / DefineButton2_133 / BUTTONCONDACTION on(release).as
Text File  |  2007-01-15  |  1KB  |  52 lines

  1. on(release){
  2.    ┬º┬ºpush(first == "1");
  3.    if(first == "1")
  4.    {
  5.       ┬º┬ºpop();
  6.       ┬º┬ºpush(eval("/:whosturn") == "1");
  7.       if(eval("/:whosturn") != "1")
  8.       {
  9.          ┬º┬ºpop();
  10.          ┬º┬ºpush(eval("/:freeforall") == "1");
  11.       }
  12.    }
  13.    ┬º┬ºpush(first == "1");
  14.    if(first == "1")
  15.    {
  16.       ┬º┬ºpop();
  17.       ┬º┬ºpush(eval("/:whosturn") == "1");
  18.       if(eval("/:whosturn") != "1")
  19.       {
  20.          ┬º┬ºpop();
  21.          ┬º┬ºpush(eval("/:freeforall") == "1");
  22.       }
  23.    }
  24.    if(┬º┬ºpop())
  25.    {
  26.       ┬º┬ºpop();
  27.       ┬º┬ºpush(getProperty("/winner", _currentframe) == "1");
  28.    }
  29.    if(┬º┬ºpop())
  30.    {
  31.       setProperty("cline", _xscale, "100");
  32.       setProperty("cline", _yscale, "100");
  33.       setProperty("cline", _rotation, getProperty("player", _rotation));
  34.       first = "0";
  35.       tellTarget("player")
  36.       {
  37.          gotoAndPlay(2);
  38.       }
  39.       tellTarget("/pline")
  40.       {
  41.          call("mResize");
  42.       }
  43.    }
  44.    else
  45.    {
  46.       tellTarget("error")
  47.       {
  48.          gotoAndPlay(2);
  49.       }
  50.    }
  51. }
  52.